-- GENERATED SPELL FOR [Gjalerbron Sleep-Watcher] --


function spell0_23989(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(15970,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23989', 11000, 1)
end

function Sorts_23989(pUnit, Event)
local choix_sorts_23989 = math.random(0, 0)
if choix_sorts_23989 == 0 then
pUnit:RegisterEvent('spell0_23989', 1, 1)
end
end

function mob23989_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23989', math.random(1500, 3000), 1)
end

function mob23989_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23989_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23989_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23989, 1, 'mob23989_Action')
RegisterUnitEvent(23989, 2, 'mob23989_Leave')
RegisterUnitEvent(23989, 3, 'mob23989_Kill')
RegisterUnitEvent(23989, 4, 'mob23989_Die')
